# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Renato Garcia <fgarcia.renato@gmail.com>
# Contributor: Tiago Camargo <tcamargo@gmail.com>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>

pkgname=stella
pkgver=6.7
pkgrel=2
pkgdesc="Atari 2600 VCS emulator"
arch=('loong64' 'x86_64')
url="https://stella-emu.github.io/"
license=('GPL2')
depends=('sdl2' 'gtk-update-icon-cache')
makedepends=('glu')
source=(https://github.com/stella-emu/stella/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz)
md5sums=('b8bff4765abf07532fc67ec0c911398f')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr

  make
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}
